
var orderQtyReportObj = {
    /**
     * 描述 : 获取图片地址并传送到粘贴板
     * 作者 : Zoro.Zhu
     */
    'getReportData': function () {
        $.ajax({
            url: ROOT_URL + "/?c=ctrl_wish_report&a=getOrderQty",
            type: "POST",
            success: function (result) {
                result = JSON.parse(result);
                var eCharts = window.L.open('eCharts', {
                    'obj'        : document.getElementById('wareChart'),    //指定显示图表的标签
                    'setOption'  : {
                        title: {
                            text: '近30天店小秘订单数量'
                        },
                        tooltip: {
                            trigger: 'axis',
                            axisPointer: {
                                type: 'cross',
                                label: {
                                    backgroundColor: '#6a7985'
                                }
                            }
                        },
                        legend: {
                            data: result.legend
                        },
                        toolbox: {
                            feature: {
                                saveAsImage: {}
                            }
                        },
                        grid: {
                            left: '3%',
                            right: '4%',
                            bottom: '3%',
                            containLabel: true
                        },
                        xAxis: [
                            {
                                type: 'category',
                                boundaryGap: false,
                                data: result.xAxis
                            }
                        ],
                        yAxis: [
                            {
                                type: 'value'
                            }
                        ],
                        series: result.series
                    }
                });
                return false;
            }
        });
    },
};
orderQtyReportObj.getReportData();